package com.saifan.wyy_ov.utils;

/**
 * @author Wangli
 * @Description: 时间去掉T截取
 * @date: 2015/6/15 19:24
 * @version: V1.0
 */
public class TimeUtils {
    public static String getTime(String time) {
        if (StringUtil.isNullOrEmpty(time))
            return "";
        return time.replaceAll("T", " ").substring(0, 16);
    }

    public static String getTimeSeconds(String time){
        if (StringUtil.isNullOrEmpty(time))
            return "";
        return time.replaceAll("T", " ").substring(0, 19);
    }
}
